﻿<UserControl x:Class="WpfImageDuplicates.ThumbViewCommandBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:y="clr-namespace:WpfImageDuplicates"             
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <StackPanel Orientation="Vertical" x:Name="stack2">
        <ToggleButton Margin="0,1,2,0" FontSize="8" x:Name="btnViewerTopmost" Visibility="Collapsed" Content="T" ToolTip="Show Viewer as Topmost Window" 
                      IsChecked="{Binding Mode=TwoWay, Path=ViewerIsTopmost}" Focusable="False" />

        <ToggleButton 
            Padding="1,0,1,0" Background="White" IsChecked="{Binding Mode=TwoWay, Path=SelectedByUser}"
            Focusable="False" Margin="0,0,0,0" FontSize="8" VerticalAlignment="Top" x:Name="btnMark" Content="M" ToolTip="Mark Image" />

        <ToggleButton 
            Padding="1,0,1,0" Background="White" IsChecked="{Binding Mode=TwoWay, Path=DeselectedByUser}"
            Focusable="False" Margin="0,0,0,0" FontSize="8" VerticalAlignment="Top" x:Name="btnUnmark" Content="U" ToolTip="Unmark Image" />
        
        <Button Focusable="False" Margin="0,0,0,0" FontSize="8" x:Name="btnRotateClockwise" Content="->"
                ToolTip="Rotate Image Clockwise (Also key W)" Click="btnRotateClockwise_Click"
                Padding="1,0,1,0" Background="White" Tag="{Binding}" />
        
        <Button Focusable="False" Margin="0,0,0,0" FontSize="8" x:Name="btnRotateCounterClockwise" Content="&lt;-" 
                Padding="1,0,1,0" Background="White" Click="btnRotateCounterClockwise_Click" Tag="{Binding}"
                ToolTip="Rotate Image Counterclockwise (Also key Q)"/>
                
        <ToggleButton Focusable="False" Margin="0,0,0,0" FontSize="8" VerticalAlignment="Top" IsChecked="{Binding Mode=TwoWay, Path=WantCompare}" x:Name="btnSetAsComparison" Content="O" 
                      Padding="1,0,1,0" Background="White" Tag="{Binding}"
                      ToolTip="Include in image comparisons" />
        <Button 
            Padding="1,0,1,0" Background="White" Click="btnDelete_Click" Tag="{Binding}"
            Focusable="False" Margin="0,0,0,0" FontSize="8" VerticalAlignment="Top" x:Name="btnDelete" Content="X" ToolTip="Delete Image (Also Delete Key)" />
        <Button 
            Padding="1,0,1,0" Background="White" Click="btnResize_Click" Tag="{Binding}"
            Focusable="False" Margin="0,0,0,0" FontSize="8" VerticalAlignment="Top" x:Name="btnResize" Content="R" ToolTip="Resize Image according to Settings"/>
        <Button 
            Padding="1,0,1,0" Background="White" Click="btnResizeDelete_Click" Tag="{Binding}"
            Focusable="False" Margin="0,0,0,0" FontSize="8" VerticalAlignment="Top" x:Name="btnResizeDelete" Content="-" ToolTip="Resize and then Delete Original (Also -)" />
        
        <!--This will change as special folders become user-defined-->
        <Button x:Name="btnCopyToSpecialFolder" Content="C" Padding="1,0,1,0" Background="White" Click="btnCopyToSpecialFolder_Click" Tag="{Binding}"
                Focusable="False" Margin="0,0,0,0" FontSize="8" VerticalAlignment="Top" ToolTip="Copy this image to a Special Folder"/>

    </StackPanel>
</UserControl>
